<%@ include file="../common.jsp" %>

<script type="text/javascript">
	$(document).ready(function(){
		setPageTitle('<tiles:getAsString name="pageTitle"/>');
		/* createLayoutForAddOrEdit('uploadDocNorthPane','uploadDocTabs'); */
		setWorkFlowURL('<c:out value="${flowExecutionUrl}" />');
// 		submitDialog();
// 		loadDocCategory();
		$( "#linkedDocId" ).selectable();
	});
</script>

<div align="center">
	<table class="bodyTable">
		<tr>
			<td>
				<table class="filtersTable zeroBorder" style="width: 100%;">
					<tr class="tableChildHeaderColor" align="left" style="width: 100%;">
						<td>
							<table style="width: 100%;" class="zeroBorder">
								<tr>
									<td style="width: 80%;">
										<table class="zeroBorder" style="width: 100%;">
											<tr>
												<td align="left">
													<table class="zeroBorder">
														<tr>
															<td class="spacingColumnWidthLess"></td>
															<td align="left">
																<img alt="" src='<c:url value="/customTheme/Icons/BlueLotus_DMS_icons-11.png"></c:url>'>
															</td>
															<td style="vertical-align: middle;">
																<span class="tableMainHeaderFont">&nbsp;UPLOAD DOCUMENTS</span>
															</td>
														</tr>
													</table>
												</td>
												<td align="right">
													<table>
														<tr align="right">
															<td> <input type="button" class="formButton ui-corner-all" value="Back" onclick="javascript:workFlowDetail('docAttrDTO','back');"/> </td>
															<td class="spacingColumnWidthLess"></td>
															<td> <input type="button" class="formButton ui-corner-all" value="Submit" onclick="javascript:submitDocument('submit','approve')"/> </td>
															<td class="spacingColumnWidthLess"></td>
															<td> <input type="button" class="formButton ui-corner-all" value="Update" onclick="loadContentToServer('uploadNewDocForm','contentDiv')"/> </td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr class="formSpacingRow formBlockColor"><td></td></tr>
					<tr>
						<td align="center">
						<div id="uploadDocTabs" class="formBlockColor"  style="overflow: auto;">
							<c:if test="${docDetailsForm.errorCount gt 0}">
								<span class="formFont errorMsg">The screen has some errors.</span>
							</c:if>
							<form:form commandName="docDetailsForm" id="uploadNewDocForm" name="uploadNewDocForm" action="${flowExecutionUrl}" enctype="multipart/form-data" method="POST">
							<form:hidden path="docId" name="docId"/>
							<form:hidden path="originalDocTypeId" value="${docDetailsForm.docTypeId}"/>
							<form:hidden path="documentStatus" value="${docDetailsForm.documentStatus}"/>
								<table style="width: 100%;" border="0" >
																		
									<tiles:insertAttribute name="attachDoc"></tiles:insertAttribute>

									<tr class="formSpacingRow formBlockColor">
										<td colspan="9">
											<hr>
										</td>
									</tr>
									<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
									<tiles:insertAttribute name="viewAttrList"></tiles:insertAttribute>
									<tr class="formSpacingRow formBlockColor">
										<td colspan="9">
											<hr>
										</td>
									</tr>
									<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
									<tiles:insertAttribute name="ownerDetails"></tiles:insertAttribute>
									
									<tr class="formSpacingRow formBlockColor">
										<td colspan="9">
											<hr>
										</td>
									</tr>
									<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
									<tiles:insertAttribute name="validityDetails"></tiles:insertAttribute>									
																						
								</table>
							</form:form>
					</div>
						</td>
				</table>
			</td>
		</tr>
	</table>
</div>

	
		<div id="remarksDiv" title="Submission Remarks" class="formBlockColor">
		</div>	
